package com.example.todolist.service;

import com.example.todolist.dto.business.PlanStatusCountDTO;
import com.example.todolist.model.TeamFarDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.todolist.response.BaseResponse;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cqq
 * @since 2022-03-21
 */
public interface TeamFarService extends IService<TeamFarDO> {

    BaseResponse addTeam(TeamFarDO teamFarDTO,String code);


    TeamFarDO joinTeam(TeamFarDO teamFarDO);

    List<TeamFarDO> selectAll();

    TeamFarDO selectDetails(String openID);

    List<TeamFarDO> selectByOneTeam(String openID);

    int deleteTeam(String id);

    TeamFarDO selectDetailsByTeamID(String teamID);

    int updateTeam(TeamFarDO teamFarDO);

    List<PlanStatusCountDTO> selectStatusNumbers(String uid) ;
}
